package com.hx.base.others;

/**
 * @author jxlgcmh
 * @create 2019-06-19 11:05
 */
public class HelloA {

    public HelloA(String s) {
        System.out.println("HelloA" + s);
    }

    {
        System.out.println("I'm A class");
    }

    static {
        System.out.println("static A");
    }

}

class HelloB extends HelloA {
    public HelloB(String s) {
        super(s);
        System.out.println("HelloB");
    }

    {
        System.out.println("I'm B class");
    }

    static {
        System.out.println("static B");
    }

    public static void main(String[] args) {
        new HelloB("hhh");
    }

}
